package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储门店和商品关系信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cate_store")
public class CateStore extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 门店ID（外键）
     */
    private Long storeId;

    /**
     * 商品分类ID（外键）
     */
    private Long cateId;

    /**
     * 关联层级
     */
    private Integer level;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public CateStore(Long storesId, Long cateId, int i)
    {
        this.storeId=storesId;
        this.cateId=cateId;
        this.level=i;
    }
}
